package com.martini.satoken01.controller;

import cn.dev33.satoken.annotation.SaCheckPermission;
import com.martini.satoken01.model.AjaxJson;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author martini at 2021/12/17 11:43
 */
@Slf4j
@RestController
@RequestMapping("/user")
public class UserController {
    @GetMapping
    @SaCheckPermission("user:read")
    public AjaxJson findUser() {
        return AjaxJson.success();
    }
}
